import request from '../utils/request'


export function create(params) {
  return request({
          url: '/member/couponCode/create',
          method: 'post',
          params: params
  })
}

export function list(params) {
        return request({
                url: '/member/couponCode/list',
                method: 'get',
                params: params
        })
}

export function couponCount() {
        return request({
                url: '/member/couponCode/count',
                method: 'get',
        })
}

// 获取平台的优惠券信息
export function couponList(params) {
        return request({
                url: '/coupon/list',
                method: 'get',
                params: params
        })
}